<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>cancellation_type</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../index.html" title="Asio">
<link rel="up" href="../reference.html" title="Reference">
<link rel="prev" href="cancellation_state/slot.html" title="cancellation_state::slot">
<link rel="next" href="cancellation_type_t.html" title="cancellation_type_t">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="cancellation_state/slot.html"><img src="../../prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../home.png" alt="Home"></a><a accesskey="n" href="cancellation_type_t.html"><img src="../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="asio.reference.cancellation_type"></a><a class="link" href="cancellation_type.html" title="cancellation_type">cancellation_type</a>
</h3></div></div></div>
<p>
        <a class="indexterm" name="asio.indexterm.cancellation_type"></a>
      </p>
<p>
        Enumeration representing the different types of cancellation that may be
        requested from or implemented by an asynchronous operation.
      </p>
<pre class="programlisting"><span class="keyword">enum</span> <span class="keyword">class</span> <span class="identifier">cancellation_type</span> <span class="special">:</span> <span class="keyword">unsigned</span> <span class="keyword">int</span>
</pre>
<p>
        <a class="indexterm" name="asio.indexterm.cancellation_type.none"></a>
 <a class="indexterm" name="asio.indexterm.cancellation_type.terminal"></a>
 <a class="indexterm" name="asio.indexterm.cancellation_type.partial"></a>
 <a class="indexterm" name="asio.indexterm.cancellation_type.total"></a>
 <a class="indexterm" name="asio.indexterm.cancellation_type.all"></a>
      </p>
<h5>
<a name="asio.reference.cancellation_type.h0"></a>
        <span><a name="asio.reference.cancellation_type.values"></a></span><a class="link" href="cancellation_type.html#asio.reference.cancellation_type.values">Values</a>
      </h5>
<div class="variablelist">
<p class="title"><b></b></p>
<dl>
<dt><span class="term">none</span></dt>
<dd><p>
              Bitmask representing no types of cancellation.
            </p></dd>
<dt><span class="term">terminal</span></dt>
<dd><p>
              Requests cancellation where, following a successful cancellation, the
              only safe operations on the I/O object are closure or destruction.
            </p></dd>
<dt><span class="term">partial</span></dt>
<dd><p>
              Requests cancellation where a successful cancellation may result in
              partial side effects or no side effects. Following cancellation, the
              I/O object is in a well-known state, and may be used for further operations.
            </p></dd>
<dt><span class="term">total</span></dt>
<dd><p>
              Requests cancellation where a successful cancellation results in no
              apparent side effects. Following cancellation, the I/O object is in
              the same observable state as it was prior to the operation.
            </p></dd>
<dt><span class="term">all</span></dt>
<dd><p>
              Bitmask representing all types of cancellation.
            </p></dd>
</dl>
</div>
<h5>
<a name="asio.reference.cancellation_type.h1"></a>
        <span><a name="asio.reference.cancellation_type.requirements"></a></span><a class="link" href="cancellation_type.html#asio.reference.cancellation_type.requirements">Requirements</a>
      </h5>
<p>
        <span class="emphasis"><em>Header: </em></span><code class="literal">asio/cancellation_type.hpp</code>
      </p>
<p>
        <span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
      </p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2022 Christopher M. Kohlhoff<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="cancellation_state/slot.html"><img src="../../prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../home.png" alt="Home"></a><a accesskey="n" href="cancellation_type_t.html"><img src="../../next.png" alt="Next"></a>
</div>
</body>
</html>
